resolveSizeAndState

open fun resolveSizeAndState(size: Int, measureSpec: Int, childMeasuredState: Int): Int(source)

Deprecated

Use resolveSizeAndState directly.

Utility to reconcile a desired size and state, with constraints imposed by a MeasureSpec. Will take the desired size, unless a different size is imposed by the constraints. The returned value is a compound integer, with the resolved size in the MEASURED_SIZE_MASK bits and optionally the bit MEASURED_STATE_TOO_SMALL set if the resulting size is smaller than the size the view wants to be.

Return

Size information bit mask as defined by MEASURED_SIZE_MASK and MEASURED_STATE_TOO_SMALL.

Parameters

size

How big the view wants to be

measureSpec

Constraints imposed by the parent

childMeasuredState

Size information bit mask for the view's children.